/**
  * Copyright 2019 bejson.com 
  */
package com.xingkeduo.dto.transter.paydetail;


import com.xingkeduo.dto.MarketDto;
import lombok.Data;

@Data
public class Card {

    private String id;
    private String name;

    public void covert(String marketingType, MarketDto marketDto){
        if("2".equals(marketingType) && marketDto!=null){
            this.id= String.valueOf(marketDto.getMarketingId());
            this.name=marketDto.getMarketingName();
        }else {
            this.id="0";
            this.name="";
        }

    }

}